package com.kuang.mapper;

import com.kuang.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    List<User> selectUser();
    User selectUserById(int id);
    User selectUserByNP2(Map<String,Object>map);
    //根据密码和名字查询用户
    User selectUserByNP(@Param("username")String username,@Param("pwd") String pwd);
    //添加一个用户
    Integer addUser(User user);
    //修改一个用户
    Integer updateUser(User user);
    //根据id删除一个用户
    Integer deleteUser(int id);
    //选择全部用户实现分页
    List <User> selectUser(Map<String,Integer>map);

}
